<?php  
class emplogin extends CI_Controller {

  function emplogin()
    {
     parent::__construct();
     $this->load->model('login_model');
	 $this->load->helper("url_helper");
       session_start();

	  //session_start();
   
    }
 
	public function index()
	  {
		 
		if($this->session->userdata('logged_in'))
		  {

			$course_details=$this->login_model->getcourse();

	  $data['course_details'] = '';               
   
		if($course_details!=false)
		  {
       $data['course_details']=$course_details;
		  }
	  	 
	 	$this->load->view('emplogin',$data);
		  }

     else{
		  redirect('login');
              }
	  }
	 }
    